package com.lxd.property.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lxd.property.dao.ShacconumberMapper;
import com.lxd.property.pojo.Shacconumber;
import com.lxd.property.service.ShacconumberService;

@Service("shacconumberService")
@Transactional
public class ShacconumberServiceImpl implements ShacconumberService {
	@Autowired
	private ShacconumberMapper shacconumberMapper;

	@Override
	public Integer addShacconumber(Shacconumber shacconumber) {
		// TODO Auto-generated method stub
		return shacconumberMapper.addShacconumber(shacconumber);
	}

	@Override
	public Shacconumber findShacconumberById(Integer id) {
		// TODO Auto-generated method stub
		return shacconumberMapper.findShacconumberById(id);
	}

	@Override
	public Integer updateShacconumber(Shacconumber shacconumber) {
		// TODO Auto-generated method stub
		return shacconumberMapper.updateShacconumber(shacconumber);
	}

	@Override
	public Integer updateStateShacconumberById(Map<String,Object> map) {
		// TODO Auto-generated method stub
		return shacconumberMapper.updateStateShacconumberById(map);
	}

	@Override
	public List<Shacconumber> findAllShacconumber(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return shacconumberMapper.findAllShacconumber(map);
	}

	@Override
	public Long findAllShacconumberCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return shacconumberMapper.findAllShacconumberCount(map);
	}

	@Override
	public Shacconumber findShacconumberByName(String aliasname) {
		// TODO Auto-generated method stub
		return shacconumberMapper.findShacconumberByName(aliasname);
	}

	@Override
	public Shacconumber findShacconumberByNameToCompare(
			Shacconumber shacconumber) {
		// TODO Auto-generated method stub
		return shacconumberMapper.findShacconumberByNameToCompare(shacconumber);
	}


}
